//
//  MyCell.m
//  Miss
//
//  Created by Yuki on 15/1/28.
//  Copyright (c) 2015年 Alan. All rights reserved.
//

#import "MyCell.h"

@implementation MyCell


- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        
        self.myLable = [[UILabel alloc] init];
        self.myLable.backgroundColor = [UIColor whiteColor];
        self.myLable.textAlignment = NSTextAlignmentCenter;
        
        [self.contentView addSubview:self.myLable];
        [_myLable release];
        
        
        self.myImageView = [[UIImageView alloc] init];
        self.myImageView.backgroundColor = [UIColor blackColor];
        [self.contentView addSubview:self.myImageView];
        [_myImageView release];
        
    }
    return  self;
}

- (void)layoutSubviews
{
    [super layoutSubviews];
  
    _myLable.frame = CGRectMake(5, 5, self.frame.size.width * 2 / 3, self.frame.size.height - 10);
    
    _myImageView.frame = CGRectMake(self.frame.size.width * 2 / 3, 5, self.frame.size.width / 3, self.frame.size.height);
    


}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
